﻿using Microsoft.Extensions.Hosting;
using ScienceRpcServe.Services;

namespace ScienceRpcServe;

public static class GrpcMapService
{
    /// <summary>
    /// rpc服务映射
    /// </summary>
    /// <param name="app"></param>
    public static void MapServices(this WebApplication app)
    {
        // Configure the HTTP request pipeline.

        
        app.MapGrpcService<DicomSplitService>();
        app.MapGrpcService<ImageShowService>();
        app.MapGrpcService<ArmBoneSegService>();
        app.MapGrpcService<HistoryImageRecordService>();





        app.MapGet("/", () => "hello world...");

    }
}

